<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>代理商首页</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all" />
	<link rel="stylesheet" href="/css/main.css" media="all" />
	<link rel="stylesheet" href="/layui/style/admin.css" media="all" />
</head>
<body class="childrenBody">
<div class="row">
	<div class="sysNotice col">
		<blockquote class="layui-elem-quote title">今日统计</blockquote>
	</div>
</div>

<div class="row" id="user_amount" style="display: none;">
	<div class="panel col">
		<a href="javascript:;" data-url="page/user/allUsers.html">
			<div class="panel_icon" style="background-color:#FF5722;">
				<i class="iconfont icon-dongtaifensishu" data-icon="icon-dongtaifensishu"></i>
			</div>
			<div class="panel_word userAll">
				<span>{{totalFee}}</span>
				<cite>总交易</cite>
			</div>
		</a>
	</div>
	<div class="panel col">
		<a href="javascript:;" data-url="page/user/allUsers.html">
			<div class="panel_icon" style="background-color:#009688;">
				<i class="layui-icon" data-icon="&#xe613;">&#xe613;</i>
			</div>
			<div class="panel_word userAll">
				<span>{{totalMoney}}</span>
				<cite>总分佣</cite>
			</div>
		</a>
	</div>
	<div class="panel col">
		<a href="javascript:;" data-url="page/img/images.html">
			<div class="panel_icon" style="background-color:#5FB878;">
				<i class="layui-icon" data-icon="&#xe64a;">&#xe64a;</i>
			</div>
			<div class="panel_word imgAll">
				<span>{{totalReward}}</span>
				<cite>总奖励</cite>
			</div>
		</a>
	</div>

</div>
<!--<div class="row">
	<div class="sysNotice col">
		<blockquote class="layui-elem-quote title">近7天交易额走势</blockquote>
		<div class="layui-elem-quote layui-quote-nm">
			<div id="main" style="width: 600px;height:400px;"></div>

		</div>
	</div>

</div>-->
<script src="/vue/vue.js"></script>
<script src="/vue/httpVueLoader.js"></script>
<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/echarts/echarts-all.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/js/common.js"></script>

<script type="text/javascript">

    $(document).ready(function () {
        var startTime = getDayString();

        $.post("/user_satistics/tradeAmoumt",{startTime:startTime},function (result) {
            new Vue({
                el: '#user_amount',
                data: result.data
            })
            $("#user_amount").css("display","block");
        });




/*

        // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('main'));

        // 指定图表的配置项和数据
        var option = {
            title: {
                text: '近7天交易额走势'
            },
            tooltip: {},
            legend: {
                data:['订单']
            },
            xAxis: {
                data: ["周一","周二","周三","周四","周五","周六"]
            },
            yAxis: {},
            series: [{
                name: '订单',
                type: 'bar',
                data: [5, 20, 36, 10, 10, 20]
            }]
        };

        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);*/
    });


</script>
</body>
</html>